import { Get,Post,Put,Delete } from "../utils/axios";

// 项目类型查询
export const FindAllItemType = (params:object) => {
    let ret = Get('itemType',params);
    return ret;
    // console.log(ret);
};

// id项目类型信息
export const GetItemTypeId =  (params:any) => {
    let ret =  Get('itemType/'+params.id);
    return ret;
};
// name项目类型信息
export const GetItemTypeName =  (params:any) => {
    let ret =  Get('itemType/name/'+params.name);
    return ret;
};
// 添加项目类型信息
export const AddItemType =  (params:object) => {
    let ret =  Post('itemType',params);
    return ret;
};
// 修改项目类型信息
export const UpdateItemType =  (params:object) => {
    let ret =  Put('itemType',params);
    return ret;
};
// 删除角色信息
export const DeleteItemType =  (params:any) => {
    let ret =  Delete('itemType/'+params.id);
    return ret;
};